# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-c
pkgver=0.23.1
pkgrel=0
pkgdesc="C grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-c"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-c/archive/v$pkgver/tree-sitter-c-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
75b89ef3dd4482b56667be63f18f1d7f45ed87a76f1c8c31503e4379fb175d6113df9e82eb7c8a77363cdfeed6f3fcc99ed3208bd083b4b281251759a0bbdca1  tree-sitter-c-0.23.1.tar.gz
"
